<html>

<head>
<title>SQL Relay - Getting Started With Oracle</title>
<link rel="stylesheet" href="../../../../../css/styles.css">
</head>

<body>

<a name="java"></a>
<span class="heading1">Install Java</span><br>

<p>Oracle 8.1.6 and 8.1.7 use a Java-based graphical installer.
You should download <b>jre118_v3-glibc-2.1.3.tar.bz2</b> (not a newer version)
from <a href="http://www.blackdown.com">blackdown</a> and execute the following
commands as root.</p>

<blockquote><b>
mv jre118_v3-glibc-2.1.3.tar.bz2 /usr/local<br>
cd /usr/local<br>
bunzip2 jre118_v3-glibc-2.1.3.tar.bz2<br>
tar xf jre118_v3-glibc-2.1.3.tar<br>
ln -s jre118_v3 java<br>
rm jre118_v3-glibc-2.1.3.tar<br>
</b></blockquote>

<a name="env"></a>
<span class="heading1">Set Up the Environment</span><br>

<p>Add the following line to /home/oracle/.bashrc near the bottom:</p>

<blockquote>
<b>export LD_ASSUME_KERNEL=2.2.5</b>
</blockquote>

<a name="compat"></a>
<span class="heading1">Install Compatibility Packages</span><br>

<p>RedHat provides glibc 2.1 compatability RPM's that can be used on any Linux
that comes with glibc 2.2.  These RPM's can be downloaded from
<a href="http://rpmfind.net">rpmfind</a>.</p>

<ul>
<li><b>compat-glibc-6.2-2.1.3.2.i386.rpm</b> for RedHat Linux 7.2</li>
<li><b>compat-egcs-6.2-1.1.2.16.i386.rpm</b> for RedHat Linux 7.2</li>
<li><b>binutils-2.11.90.8-9.src.rpm</b> for RedHat Linux 7.2 (note that this is a <b>source</b> RPM, not a binary RPM.</li>
</ul>

<span class="heading4">Slackware</span><br>

<p>On Slackware, you'll need to install RPM.  The RPM package is available
from <a href="ftp://ftp.slackware.com">ftp.slackware.com</a>.  You can install 
it using <i>installpkg</i>.  Once RPM is installed, log in as root and run
the following command to initialize the RPM database.</p>

<blockquote><b>rpm --initdb</b></blockquote>

<p>To install the compat-RPM's run the following commands:</p>

<blockquote>
<b>rpm -i --nodeps compat-glibc-6.2-2.1.3.2.i386.rpm<br>
rpm -i --nodeps compat-egcs-6.2-1.1.2.16.i386.rpm<br>
rpm -i --nodeps binutils-2.11.90.0.8-9.src.rpm<br>
cp /usr/src/rpm/SOURCES/binutils-2.11.90.0.8.tar.bz2 /root<br>
cd /root<br>
bunzip2 binutils-2.11.90.0.8.tar.bz2<br>
tar xf binutils-2.11.90.0.8.tar<br>
cd binutils-2.11.90.0.8<br>
cp /usr/src/rpm/SOURCES/binutils-2.11.90.0.4-glibc21.patch .<br>
patch -p1 &lt; binutils-2.11.90.0.4-glibc21.patch<br>
configure --prefix=/usr/local/binutils-glibc21<br>
make<br>
make install<br></b>
</blockquote>

<p>If you don't get any errors, you should end up with a directory called
/usr/local/binutils-glibc21 containing everything necessary to link Oracle
against the glibc-2.1 provided by the compat-RPM's.</p>

<p>Now edit /home/oracle/.bashrc and add the following command near the
bottom.</p>

<blockquote>
<b>. /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh</b>
</blockquote>

</body>

</html>
